package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单实体类，用于表示订单的各种属性信息。
 */
@Data
public class PurchaseInStockOrder extends BaseEntity {
    //主键 自增
    private Integer purchaseInStockOrderId;
    private static final long serialVersionUID = 1L;
    // 供应商采购入库单id
    private String inStockSheetId;
    // 供应商id
    private String supplierId;
    //供应商名
    private String supplierName;
    // 单据状态 0:审核不通过/1:待提交/2:待审核/3:审核通过/4:已结款
    //
    //允许值: 0, 1, 2, 3, 4
    private int status;
    // 商品金额
    private BigDecimal skuAmount;
    // 折让金额
    private BigDecimal discountAmount;
    // 入库金额
    private BigDecimal totalAmount;
    // 创建时间
    private String createDate;
    // 入库日期
    private String inStockDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "modify_time")
    private Date guanmaiModifyTime;

    private Integer pushErrorNum;
    private Integer isPush;



}